package ch.drshit;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import ch.drshit.controller.Controller;
import ch.drshit.model.Model;
import ch.drshit.view.View;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (ClassNotFoundException | InstantiationException
				| IllegalAccessException | UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			System.err.println("An exception has occured while setting the default look and feel");
			System.err.println("Using Java look and feel");
		}
		
		Model model = new Model();
        View view = new View(); 
        Controller controller = new Controller(model,view);
        controller.controll(); //start controlling the Listeners
        
	}

}
